package com.ruoyi.fengkong.entity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 风控公寓授信子对象 t_fk_business_credit_sub
 * 
 * @author wish
 * @date 2021-06-19
 */
public class TFkBusinessCreditSub extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 关联t_fk_business_credit */
    @Excel(name = "关联t_fk_business_credit")
    private Long creditId;

    /** 资金方id，关联t_m_capital表 */
    @Excel(name = "资金方id，关联t_m_capital表")
    private Long capitalId;

    /** 产品id，关联t_jr_product，取产品的授信额度 */
    @Excel(name = "产品id，关联t_jr_product，取产品的授信额度")
    private Long productId;

    /** 总授信额度 */
    @Excel(name = "总授信额度")
    private BigDecimal totalCreditline;

    /** 已用授信额度 */
    @Excel(name = "已用授信额度")
    private BigDecimal usedCreditline;

    /** 月度授信额度 */
    @Excel(name = "月度授信额度")
    private BigDecimal monthlyTotalCreditline;

    /** 月度已用授信额度 */
    @Excel(name = "月度已用授信额度")
    private BigDecimal monthlyUsedCreditline;

    /** 资金方识别码 */
    @Excel(name = "资金方识别码")
    private String appid;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private BigDecimal reserve1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private Long reserve2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private String reserve3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private String reserve4;

    /** 预留字段5 */
    @Excel(name = "预留字段5")
    private String reserve5;

    /** 删除标识   0：未删除、1：删除 */
    @Excel(name = "删除标识   0：未删除、1：删除")
    private Integer delFlg;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private Long createUserid;

    /** 更新用户id */
    @Excel(name = "更新用户id")
    private Long updateUserid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCreditId(Long creditId) 
    {
        this.creditId = creditId;
    }

    public Long getCreditId() 
    {
        return creditId;
    }
    public void setCapitalId(Long capitalId) 
    {
        this.capitalId = capitalId;
    }

    public Long getCapitalId() 
    {
        return capitalId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setTotalCreditline(BigDecimal totalCreditline) 
    {
        this.totalCreditline = totalCreditline;
    }

    public BigDecimal getTotalCreditline() 
    {
        return totalCreditline;
    }
    public void setUsedCreditline(BigDecimal usedCreditline) 
    {
        this.usedCreditline = usedCreditline;
    }

    public BigDecimal getUsedCreditline() 
    {
        return usedCreditline;
    }
    public void setMonthlyTotalCreditline(BigDecimal monthlyTotalCreditline) 
    {
        this.monthlyTotalCreditline = monthlyTotalCreditline;
    }

    public BigDecimal getMonthlyTotalCreditline() 
    {
        return monthlyTotalCreditline;
    }
    public void setMonthlyUsedCreditline(BigDecimal monthlyUsedCreditline) 
    {
        this.monthlyUsedCreditline = monthlyUsedCreditline;
    }

    public BigDecimal getMonthlyUsedCreditline() 
    {
        return monthlyUsedCreditline;
    }
    public void setAppid(String appid) 
    {
        this.appid = appid;
    }

    public String getAppid() 
    {
        return appid;
    }
    public void setReserve1(BigDecimal reserve1) 
    {
        this.reserve1 = reserve1;
    }

    public BigDecimal getReserve1() 
    {
        return reserve1;
    }
    public void setReserve2(Long reserve2) 
    {
        this.reserve2 = reserve2;
    }

    public Long getReserve2() 
    {
        return reserve2;
    }
    public void setReserve3(String reserve3) 
    {
        this.reserve3 = reserve3;
    }

    public String getReserve3() 
    {
        return reserve3;
    }
    public void setReserve4(String reserve4) 
    {
        this.reserve4 = reserve4;
    }

    public String getReserve4() 
    {
        return reserve4;
    }
    public void setReserve5(String reserve5) 
    {
        this.reserve5 = reserve5;
    }

    public String getReserve5() 
    {
        return reserve5;
    }
    public void setDelFlg(Integer delFlg) 
    {
        this.delFlg = delFlg;
    }

    public Integer getDelFlg() 
    {
        return delFlg;
    }
    public void setCreateUserid(Long createUserid) 
    {
        this.createUserid = createUserid;
    }

    public Long getCreateUserid() 
    {
        return createUserid;
    }
    public void setUpdateUserid(Long updateUserid) 
    {
        this.updateUserid = updateUserid;
    }

    public Long getUpdateUserid() 
    {
        return updateUserid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("creditId", getCreditId())
            .append("capitalId", getCapitalId())
            .append("productId", getProductId())
            .append("totalCreditline", getTotalCreditline())
            .append("usedCreditline", getUsedCreditline())
            .append("monthlyTotalCreditline", getMonthlyTotalCreditline())
            .append("monthlyUsedCreditline", getMonthlyUsedCreditline())
            .append("appid", getAppid())
            .append("reserve1", getReserve1())
            .append("reserve2", getReserve2())
            .append("reserve3", getReserve3())
            .append("reserve4", getReserve4())
            .append("reserve5", getReserve5())
            .append("delFlg", getDelFlg())
            .append("createUserid", getCreateUserid())
            .append("createTime", getCreateTime())
            .append("updateUserid", getUpdateUserid())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
